<template>
  <div class="home">
    <section class="hero">
      <h1>欢迎来到Vue模板项目</h1>
      <p>这是一个功能完整、设计美观的Vue 3项目模板，适用于快速开发现代Web应用。</p>
      <button class="cta-button">开始使用</button>
    </section>
    
    <section class="features">
      <div class="feature">
        <img src="https://picsum.photos/300/200?random=1" alt="Feature 1">
        <h2>响应式设计</h2>
        <p>适配各种设备屏幕，提供一致的用户体验。</p>
      </div>
      <div class="feature">
        <img src="https://picsum.photos/300/200?random=2" alt="Feature 2">
        <h2>组件化架构</h2>
        <p>采用Vue 3 Composition API，代码结构清晰易维护。</p>
      </div>
      <div class="feature">
        <img src="https://picsum.photos/300/200?random=3" alt="Feature 3">
        <h2>现代化工具链</h2>
        <p>基于Vite构建，提供极快的开发体验。</p>
      </div>
    </section>
    
    <section class="content">
      <h2>为什么选择这个模板？</h2>
      <p>此模板遵循最佳实践，集成了Vue 3、Vite和Vue Router的核心功能，为您提供了：</p>
      <ul>
        <li>清晰的项目结构</li>
        <li>预配置的路由系统</li>
        <li>响应式布局设计</li>
        <li>可复用的组件示例</li>
        <li>零配置启动开发</li>
      </ul>
    </section>
  </div>
</template>

<script>
export default {
  name: 'Home'
}
</script>

<style scoped>
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background-color: #42b983;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #359c6d;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.content {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.content h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.content ul {
  list-style-type: none;
  padding: 0;
}

.content li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.content li:before {
  content: "✓";
  color: #42b983;
  position: absolute;
  left: 0;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
}
</style>